.is-disabled {
  .el-upload--picture-card,
  .el-upload--text,
  .el-upload__tip,
  .el-upload-list__item.is-success .el-upload-list__item-status-label {
    display: none !important;
  }
}
.el-upload-list--text {
  margin: 0;
  // margin-bottom: 18px;
  &.is-disabled {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    .el-upload-list__item {
      width: auto;
      .el-upload-list__item-name {
        margin-right: 20px;
        color: var(--text-primary, #409eff);
        &:hover {
          opacity: 0.8;
        }
        // 解决英文被裁剪
        .el-upload-list__item-file-name {
          padding-bottom: 5px !important;
        }
      }
    }
  }
}
.el-upload-list__item {
  color: var(--text-common, #333);
  line-height: 1 !important;
  margin-top: 0 !important;
  height: 24px;
  .el-icon-close {
    top: 5px;
  }
  .el-upload-list__item-info {
    // margin-top: 2.5px;
    height: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
}

.el-upload-list__item-name {
  align-items: flex-start;
  height: 24px;
  line-height: 24px;
  width: 100%;
  > i {
    margin-right: 5px;
    width: 14px;
    height: 14px;
    display: inline-block;
    transform: translateY(5px);
  }
  > .el-upload-list__item-file-name {
    // padding-bottom: 5px;
  }
}

.el-upload__tip {
  font-size: 14px;
  color: var(--text-placeholder, #999);
  line-height: 24px;
  margin: 5px 0 10px 0;
}

.ls-file-upload {
  .avatar {
    width: 145px;
    height: 145px;
    display: block;
    position: relative;
  }

  .avatar:hover .avatar-mode {
    opacity: 1;
  }

  .disabled .avatar-delete-icon {
    display: none;
  }

  .avatar-mode {
    opacity: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
    border-radius: 6px;
  }

  .avatar-mode i + i {
    margin-left: 12px;
  }

  .avatar-delete-icon,
  .avatar-view-icon {
    color: var(--text-bright, #fff);
    font-size: 20px;
  }

  .avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    // background-color: #fbfdff;
    background-color: var(--el-fill-color-lighter, #fbfdff);
    border: 1px dashed var(--el-border-color-darker, #ececec);
    border-radius: 6px;
    .avatar-img-error {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
    }
  }

  .avatar-uploader-icon {
    background-color: var(--el-fill-color-lighter);
    border: 1px dashed var(--el-border-color-darker, #ececec);
    box-sizing: border-box;
    border-radius: 6px;
    color: var(--text-placeholder, #999);
    width: 148px;
    height: 148px;
    line-height: 146px;
    vertical-align: top;
    font-size: 28px;
    &:hover {
      border-color: var(--border-primary, #409eff);
    }
  }

  .p-r-2 {
    padding-right: 2px;
  }

  .p-l-2 {
    padding-left: 2px;
  }

  .icon {
    &-image {
      background-image: url(../images/picture.svg);
    }

    &-video {
      background-image: url(../images/video.svg);
    }

    &-word {
      background-image: url(../images/word.svg);
    }

    &-excel {
      background-image: url(../images/excel.svg);
    }

    &-ppt {
      background-image: url(../images/ppt.svg);
    }

    &-pdf {
      background-image: url(../images/pdf.svg);
    }

    &-default {
      background-image: url(../images/default.svg);
    }
    &-zip {
      background-image: url(../images/zip-36.png);
      background-size: 100% 100%;
    }
  }
}

.el-icon.avatar-uploader-icon {
  width: 145px;
  height: 145px;
}
